package com.happyfamily.springboot.crowdsourcingplatform.service.weng;

import com.happyfamily.springboot.crowdsourcingplatform.base.result.Results;
import com.happyfamily.springboot.crowdsourcingplatform.model.LastestInfomation;

import java.util.List;

public interface LastInfoService
{
	/**
	 * 分页获取最新资讯
	 *
	 * @param startPosition
	 * @param limit
	 * @return
	 */
	Results<LastestInfomation> getAllLastInfoByPage(Integer startPosition, Integer limit);

	int deleteLatestInfo(Integer lid);

	int openLatestInfo(Integer lid);

	int closeLatestInfo(Integer lid);

	Results<LastestInfomation> getInfoByFuzzy(String ltitle, String getDate, Integer startPosition, Integer limit);

	int infoEdit(Integer lid, String ltitle);

	List<LastestInfomation> frontGetLatestNews();
}
